/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.playground.core.service.ruler.impl;

import com.playground.core.entity.Player;
import com.playground.core.entity.boardgame.BoardGame;
import com.playground.core.service.ruler.BoardGameRuler;

/**
 *
 * @author Tiago Peres
 */
public abstract class BoardGameRulerImpl implements BoardGameRuler {
    public void endTurn(BoardGame game){
        endTurn(game, null);
    }
    
    public int countPiecesFromPlayer(BoardGame game, Player player){
        return game.getBoard().getPieces(player).size();
    }
}
